# Create Data Source

Create a new data source. Max 100 data sources are allowed.
Warn: If you have an integration with one data source, please check if
data source id is included in the upsert request before adding a new data source.
Otherwise, adding new data source may lead to upsert failures visible as bad request
containing message "No DataSource was provided for the given Business Partners
and the storage has more than one attached to it.".
In case data source is created within DATA_MIRROR and does not have `dataMapperDefinitionId`
or `dataTransformationDefinitionId` filled, `dataMapperDefinitionId` is set to `default`.

Endpoint: POST /storages/{storageId}/datasources
Version: 5
Security: apiKey

## Security:

  - `apiKey` (unknown)
    apiKey in header X-API-KEY

## Path parameters:

  - `storageId` (string, required)
    Unique ID of Business Partner storage.

## Request fields (application/json):

  - `name` (string)
    Name of a data source of a storage.
    Example: Internal customers

  - `dataMapperDefinitionId` (string)
    ID of related Data Mapper Definition that is used for mapping data of this Business Partner Storage.
    Example: 6440dba32b30176c5917b1b7

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `id` (string)
    Unique identifier for a Data Source of the Storage.
    Example: 648824a691d8d2503d65103e

  - `createdAt` (string)
    Date of creation (ISO 8601-compliant).
    Example: 2026-11-30T10:28:48Z

  - `lastUpdatedAt` (string)
    Date of modification (ISO 8601-compliant).
    Example: 2026-11-30T10:28:48Z

  - `name` (string)
    Name of a data source of a storage.
    Example: Internal customers

  - `dataMapperDefinitionId` (string)
    ID of related Data Mapper Definition that is used for mapping data of this Business Partner Storage.
    Example: 6440dba32b30176c5917b1b7

## Response 400:

  - `400` (unknown)
    Bad Request

